﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SystemUpdatesCore.Client
{
    /// <summary>
    /// 客户端存储配置
    /// </summary>
    public class ClientUrlMode
    {
        public ClientUrlMode(ClientVersionEnum ClientVersion, string url)
        {
            Url = url;
            IsSuccess = null;
        }

        /// <summary>
        /// 客户端存储版本的位置
        /// </summary>
        public ClientVersionEnum ClientVersion { get; set; }

        /// <summary>
        /// 是否可用
        /// null 默认，未尝试访问
        /// true  可用
        /// false 不可用
        /// </summary>
        public bool? IsSuccess { get; set; }

        /// <summary>
        /// url地址或文件名
        /// </summary>
        public string Url { get; set; }

    }
}
